﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="ECommerce.Web.ECAdmin.Product.List" %>
<%@ Register src="../../Common/Controls/Selecter.ascx" tagname="Selecter" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Common/Style/Skin1/Pager.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span>
                <b style="background-image: url(../../common/images/icons/DELETE.gif);">&nbsp;</b><asp:Literal
                    ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <span style="font-weight: bold">产品列表</span>
        </div>
        <div class="right">
            产品名称：<asp:TextBox ID="txtName" runat="server" Width="100px" CssClass="txt"></asp:TextBox>
            <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" />            
        </div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    产品名称
                </th>
                <th>
                    现价
                </th>
                <th>
                    原价
                </th>
                <th>
                    销量
                </th>
                <th>
                    是否推荐
                </th>
                <th>
                    操作
                </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                onitemdatabound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td>
                           <asp:HyperLink ID="lnkName" runat="server" NavigateUrl="#" Text='<%# Eval("Name") %>'
                            EnableViewState="False"></asp:HyperLink>&nbsp;
                        </td>
                        <td>
                            <%#Eval("CurrentPrice")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("OldPrice")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("SalesVolume")%>&nbsp;
                        </td>
                        <td>
                            <%#((bool)Eval("Recommend"))?"是":"否"%>
                        </td>
                        <td>
                            <asp:HyperLink ID="lnkEdit" runat="server">[修改]</asp:HyperLink>
                            <asp:HyperLink ID="lnkComment" runat="server">[查看评论]</asp:HyperLink>
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="8" class="empty">
                            没有产品
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <div id="foot">
        <uc1:selecter id="Selecter1" runat="server" />
        <asp:Literal ID="litPager" runat="server"></asp:Literal></div>
    <div style="clear: both;" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" OnClientClick="return confirm('确认删除?')"
            Style="letter-spacing: normal;" />
        
    </div>
</asp:Content>
